const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(createProxyMiddleware('/asgard', {
    target: 'https://m.maoyan.com/',
    secure: true,
    changeOrigin: true,
  }));
  app.use(createProxyMiddleware("/ajax",{
    target:"https://m.maoyan.com/",
    secure:true,
    changeOrigin:true,
  }))
}
